<extend name="work/base"/>
<block name="content">
    <div class="weui-msg">
        <div class="weui-msg__icon-area"><i class="weui-icon-warn weui-icon_msg"></i></div>
        <div class="weui-msg__text-area">
            <h2 class="weui-msg__title">订阅说明</h2>
            <p class="weui-msg__desc">{$order_info}</p>
        </div>
        <div class="weui-msg__opr-area">
            <p class="weui-btn-area">
                <a  id="href" class="weui-btn weui-btn_primary">取消定阅</a>
                <a href="{:url('cityroad/index')}" class="weui-btn weui-btn_default">返回高速列表</a>
            </p>
        </div>
        <div class="weui-msg__extra-area">
            <div class="weui-footer">

            </div>
        </div>
    </div>
</block>
<block name="script">
    <script type="text/javascript">
        $(document).ready(function () {
            $(document).ready(function () {
                $(".weui-btn_primary").click(function () {
                    $.ajax({
                        type: 'post',
                        url: '{:url("order")}',
                        data:{id:{$id}},
                        success: function (data) {
                            if (data.code == 1) {
                                $.toast(data.msg);
                            } else {
                                $.toast(data.msg, "cancel");
                            }
                        }
                    });
                    return false;
                });

            });
        });
    </script>
</block>
